import ajax from '@/api/apiConfig.js'

/*根据联网单位、预案名称获取应急预案信息*/
export const selectEmergencyPlanInfo = (data) => {
  return ajax.get('emergencyPlan/selectEmergencyPlanInfo', data)
}

/*获取某个消防预案详细信息*/
export const selectEmergencyPlanDetail = (data) => {
  return ajax.get('emergencyPlan/selectEmergencyPlanDetail', data)
}

/*获取应急小组人员信息下拉框*/
export const selectEmergencyGroupMemberList = (data) => {
  return ajax.get('emergencyPlan/selectEmergencyGroupMemberList', data)
}

/*各单位预案列表*/
export const getUnitEmergencyPlan = (data) => {
  return ajax.get('org/getUnitEmergencyPlan', data)
}

/*应急预案数量统计*/
export const getCountEmergencyPlanUnit = (data) => {
  return ajax.get('org/getCountEmergencyPlanUnit', data)
}

/*保存预案*/
export const saveEmergencyPlanInfo = (data) => {
  return ajax.post('emergencyPlan/saveEmergencyPlanInfo', data)
}

/*删除预案信息*/
export const delEmergencyPlan = (data) => {
  return ajax.post('emergencyPlan/delEmergencyPlan', data)
}

/*设备获取关联梯控状态*/
export const getFcfAndElecontro = (data) => {
  return ajax.get('fcf/getFcfAndElecontro', data)
}
